google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',162269,null,null,null,null], ['2024-02-26',162285,null,null,null,null], ['2024-02-27',162303,null,null,null,null], ['2024-02-28',162321,null,null,null,null], ['2024-02-29',162334,null,null,null,null], ['2024-03-01',162354,null,null,null,null], ['2024-03-02',162364,null,null,null,null], ['2024-03-03',162372,null,null,null,null], ['2024-03-04',162409,null,null,null,null], ['2024-03-05',162416,null,null,null,null], ['2024-03-06',162416,null,null,null,null], ['2024-03-07',162437,null,null,null,null], ['2024-03-08',162449,null,null,null,null], ['2024-03-09',162461,null,null,null,null], ['2024-03-10',162469,null,null,null,null], ['2024-03-11',162485,null,null,null,null], ['2024-03-12',162499,null,null,null,null], ['2024-03-13',162513,null,null,null,null], ['2024-03-14',162527,null,null,null,null], ['2024-03-15',162527,null,null,null,null], ['2024-03-16',162550,null,null,null,null], ['2024-03-17',162567,null,null,null,null], ['2024-03-18',162577,null,null,null,null], ['2024-03-19',162590,null,null,null,null], ['2024-03-20',162607,null,null,null,null], ['2024-03-21',162622,null,null,null,null], ['2024-03-22',162647,null,null,null,null], ['2024-03-23',162647,null,null,null,null], ['2024-03-24',162663,null,null,null,null], ['2024-03-25',162690,null,null,null,null], ['2024-03-26',162690,null,null,null,null], ['2024-03-27',162690,null,null,null,null], ['2024-03-28',162722,null,null,null,null], ['2024-03-29',162734,null,null,null,null], ['2024-03-30',162734,null,null,null,null], ['2024-03-31',162734,null,null,null,null], ['2024-04-01',162734,null,null,null,null], ['2024-04-02',162734,null,null,null,null], ['2024-04-03',162792,null,null,null,null], ['2024-04-04',162812,null,null,null,null], ['2024-04-05',162828,null,null,null,null], ['2024-04-06',162843,null,null,null,null], ['2024-04-07',162863,null,null,null,null], ['2024-04-08',162879,null,null,null,null], ['2024-04-09',162891,null,null,null,null], ['2024-04-10',162904,null,null,null,null], ['2024-04-11',162917,null,null,null,null], ['2024-04-12',162933,null,null,null,null], ['2024-04-13',162942,null,null,null,null], ['2024-04-14',162958,null,null,null,null], ['2024-04-15',162973,null,null,null,null], ['2024-04-16',162973,null,null,null,null], ['2024-04-17',162980,null,null,null,null], ['2024-04-18',162989,null,null,null,null], ['2024-04-19',163003,null,null,null,null], ['2024-04-20',163017,null,null,null,null], ['2024-04-21',163025,null,null,null,null], ['2024-04-22',163066,null,null,null,null], ['2024-04-23',163112,null,null,null,null], ['2024-04-24',163126,null,null,null,null], ['2024-04-25',163147,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });